package com.earth.springbootmongo.controller;

import com.earth.springbootmongo.model.MessageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/home")
public class HomeController {

    @Autowired
    private MongoTemplate mongoTemplate;

//    @RequestMapping("/test")
//    public String index(){
//        MessageInfo messageInfo = new MessageInfo();
//        messageInfo
//        mongoTemplate.insert();
//    }
}
